// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import store from './store'
import toast from './components/common/toast'
 import fastclick from 'fastclick'
import vueLazyLoad from  'vue-lazyload'
//asios 网络请求

Vue.config.productionTip = false
//添加时间总线对象
Vue.prototype.$bus=new Vue()
//安装toast插件
Vue.use(toast)
//解决移动端300毫秒延迟
fastclick.attach(document.body)
//图片懒加载    使用:src  换成 v-lazy
Vue.use(vueLazyLoad)    // loading :require()  未加载时展示图片
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
   store,
  components: { App },
  template: '<App/>'
})
